package com.bdqn.ordersystem.service.impl;

import com.bdqn.ordersystem.dao.AreaDao;
import com.bdqn.ordersystem.pojo.Area;
import com.bdqn.ordersystem.service.AreaService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("areaService")
public class AreaServiceImpl implements AreaService {

    @Resource
    private AreaDao areaDao;

    @Override
    public List<Area> listAll() {
        return areaDao.select();
    }
}
